<%#
# login.rhtml
# 
# Created on 2007-9-12, 12:56:18
# 
# To change this template, choose Tools | Templates
# and open the template in the editor.
%>
<html>
    <head>
        <title>简单化休闲服饰</title>
        <%= stylesheet_link_tag "default" , :media => "all" %>
    </head>
    <body>
        <table width=600 align=center valign=center>
            <tr>
                <td height=100 align=center>
                <h1 class="title"><strong>简单化休闲服饰后台管理</strong></h1>
            </tr>
            <tr>
                <td align=center>
                    <fieldset style="width:300">
                        <legend>登录</legend>
                        <% form_for :user,:url=>{:controller=>:user,:action=>'login'} do |form| %>
                          <p>
                              <label for="user_name" >用户名:</label>
                              <%= form.text_field :name, :size =>10 %>
                          </p>
                          <p>
                              <label for="user_password" >密码:</label>
                              <%= form.password_field :password,:size =>10 %>
                          </p>
                          <%= submit_tag "登录" %>
                        <% end %>        
                    </fieldset>
                </td>
            </tr>
            <tr>
                <td height=20 align=center>
                    <% if flash[:notice]%>
                        <div id="notice"><%=flash[:notice]%> </div>
                        <% end %>
                    </td>
                </tr>
            </table>
        </body>
    </html>